import { ipcRenderer } from "electron";

import { ADD_LOG_LINES, addLogLines } from "../../common/redux/logs/actions";

export function initLogs(store) {
  ipcRenderer.on(ADD_LOG_LINES, (event, lines, context) => {
    store.dispatch(addLogLines(lines, context));
  });
}
